let events=require('events');
let emitter=new events.EventEmitter();
emitter.once('error',()=>{
    console.log('Catch error, then throw it.');
    emitter.emit('error');
})
emitter.emit('error');
